package com.youkeyi.ddy.cloud.common.api.basic.pub.user;

import com.youkeyi.ddy.cloud.common.api.basic.pub.user.dto.PublicUserAuthLoginListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.user.param.PublicUserAuthLoginCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.user.param.PublicUserAuthLoginQueryCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicUserAuthLoginCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 4:43 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/user/auth/login/fallback")
public class PublicUserAuthLoginCloudServiceFallback implements PublicUserAuthLoginCloudService {

    @Override
    public PublicUserAuthLoginListCloudDto query(PublicUserAuthLoginQueryCloudParam param) {
        return new PublicUserAuthLoginListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicUserAuthLoginCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

}
